home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / rollerrush / game.dcr / Internal_83_Calendar day july.ls < prev    next >
Encoding:
Text File  |  2007-10-01  |  742 b   |  41 lines

  1. property sd, spriteNum
  2. global gLevel, gUpgradeSet, gDoingTutorial, gNextLevel
  3.  
  4. on beginSprite me
  5.   sd = sprite(spriteNum)
  6.   sd.blend = 0
  7.   sd.visible = 0
  8. end
  9.  
  10. on mouseUp me
  11.   playSound(9, "mousedown1")
  12.   sprite(4).visible = 1
  13.   sprite(4).loc = sd.loc
  14.   gLevel = spriteNum - 9
  15.   if spriteNum = 6 then
  16.     gLevel = 0
  17.   end if
  18.   if gLevel < gNextLevel then
  19.     sprite(37).visible = 0
  20.   else
  21.     sprite(37).visible = 1
  22.   end if
  23.   if spriteNum = 6 then
  24.     if the doubleClick then
  25.       gLevel = 0
  26.       gDoingTutorial = 1
  27.       go("Game")
  28.     end if
  29.   else
  30.     gDoingTutorial = 0
  31.     if (spriteNum - 9) < 11 then
  32.       gUpgradeSet = 1
  33.     else
  34.       gUpgradeSet = 2
  35.     end if
  36.     if the doubleClick then
  37.       go("Game")
  38.     end if
  39.   end if
  40. end
  41.